/**
 * Copyright &copy; 2012-2016 civet All rights reserved.
 */
package cn.mcsys.myadmin.modules.air.service;

import cn.mcsys.myadmin.common.persistence.Page;
import cn.mcsys.myadmin.common.service.CrudService;
import cn.mcsys.myadmin.modules.air.dao.AirDispatchLogDao;
import cn.mcsys.myadmin.modules.air.entity.AirDispatchLog;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 调度操作Service
 * @author 波波
 * @version 2018-08-17
 */
@Service
@Transactional(readOnly = true)
public class AirDispatchLogService extends CrudService<AirDispatchLogDao, AirDispatchLog> {

	public AirDispatchLog get(Integer id) {
		return super.get(id);
	}
	
	public List<AirDispatchLog> findList(AirDispatchLog airDispatchLog) {
		return super.findList(airDispatchLog);
	}
	
	public Page<AirDispatchLog> findPage(Page<AirDispatchLog> page, AirDispatchLog airDispatchLog) {
		return super.findPage(page, airDispatchLog);
	}
	
	@Transactional(readOnly = false)
	public void save(AirDispatchLog airDispatchLog) {
		super.save(airDispatchLog);
	}
	
	@Transactional(readOnly = false)
	public void delete(AirDispatchLog airDispatchLog) {
		super.delete(airDispatchLog);
	}

	public List<AirDispatchLog> getCarRecord(AirDispatchLog airDispatchLog) {

		return dao.getCarRecord(airDispatchLog);
	}
}